package com.chance.cc.crawler.prod.command.schedule.news.bilibili;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.bilibili.adhoc.BiLiBiLiSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.bilibili.adhoc.BilibiliArticleSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @author lt
 * @version 1.0
 * @date 2021-05-08 16:20:26
 * @email okprog@sina.com
 */
public class BiLiBiLiSimpleCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
        publicCrawlerScheduleJob(BiLiBiLiSimpleCrawlerSchedulerJob.crawlerScheduler());
//        publicCrawlerScheduleJob(BilibiliArticleSimpleCrawlerSchedulerJob.bitAutoScheduler());
    }

    public static void publicCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_10);
    }

    public static void delCrawlerJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_10);
    }
}
